package com.neo.springcloud.alibaba.service;

import com.neo.springcloud.entities.CommonResult;
import com.neo.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @ClassName: PaymentFallbackService
 * @Title: cloud2021
 * @Package: com.neo.springcloud.alibaba.service
 * @Description:
 * @Author: Kisen
 * @Date: 2021/11/20 16:01
 */
@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(4444, "服务降级返回，PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
